package services

import (
	"chatgpt/services/app"
	"chatgpt/services/pay"
	"chatgpt/services/token"
	mcache "github.com/patrickmn/go-cache"
	"time"
)

func Init() {
	token.Login = token.LoginSrv{Cache: mcache.New(time.Hour, 24*time.Hour)}
}

var (
	UserSrv         app.UserSrv
	OrderSrv        app.OrderSrv
	PriceSrv        app.PriceSrv
	ProductSrv      app.ProductSrv
	BenefitSrv      app.BenefitSrv
	PaySrv          pay.PaySrv
	RegisterUserSrv app.RegisterUser
)
